<div class="colstack_item colstack_head">
	<div class="rowitem"><a href="/panel/">{{lang "panel_menu_head"}}</a></div>
</div>
<div class="colstack_item rowmenu">
	<div class="rowitem passive">
		<a href="/panel/users/">{{lang "panel_menu_users"}}</a> <a class="menu_stats" href="#">({{.Stats.Users}})</a>
	</div>
	<div class="rowitem passive">
		<a href="/panel/groups/">{{lang "panel_menu_groups"}}</a> <a class="menu_stats" href="#">({{.Stats.Groups}})</a>
	</div>
	{{if .CurrentUser.Perms.ManageForums}}<div class="rowitem passive">
		<a href="/panel/forums/">{{lang "panel_menu_forums"}}</a> <a class="menu_stats" href="#">({{.Stats.Forums}})</a>
	</div>{{end}}
	<div class="rowitem passive">
		<a href="/panel/pages/">{{lang "panel_menu_pages"}}</a> <a class="menu_stats" href="#">({{.Stats.Pages}})</a>
	</div>
	{{if .CurrentUser.Perms.EditSettings}}<div class="rowitem passive">
		<a href="/panel/settings/">{{lang "panel_menu_settings"}}</a> <a class="menu_stats" href="#">({{.Stats.Settings}})</a>
	</div>
	<div class="rowitem passive">
		<a href="/panel/settings/word-filters/">{{lang "panel_menu_word_filters"}}</a> <a class="menu_stats" href="#">({{.Stats.WordFilters}})</a>
	</div>{{end}}
	{{if .CurrentUser.Perms.ManageThemes}}
	<div class="rowitem passive">
		<a href="/panel/themes/">{{lang "panel_menu_themes"}}</a> <a class="menu_stats" href="#">({{.Stats.Themes}})</a>
	</div>
	{{if eq .Zone "themes"}}
		<div class="rowitem passive submenu"><a href="/panel/themes/menus/">{{lang "panel_menu_menus"}}</a></div>
		<div class="rowitem passive submenu"><a href="/panel/themes/widgets/">{{lang "panel_menu_widgets"}}</a></div>
	{{end}}
	{{end}}
</div>
<div class="colstack_item colstack_head">
	<div class="rowitem"><a href="#">{{lang "panel_menu_events"}}</a></div>
</div>
<div class="colstack_item rowmenu">
	<div class="rowitem passive">
		<a href="/panel/analytics/views/">{{lang "panel_menu_stats"}}</a>
	</div>
	{{if eq .Zone "analytics"}}
		<div class="rowitem passive submenu">
			<a href="/panel/analytics/posts/">{{lang "panel_menu_stats_posts"}}</a>
		</div>
		<div class="rowitem passive submenu">
			<a href="/panel/analytics/topics/">{{lang "panel_menu_stats_topics"}}</a>
		</div>
		<div class="rowitem passive submenu">
			<a href="/panel/analytics/forums/">{{lang "panel_menu_stats_forums"}}</a>
		</div>
		<div class="rowitem passive submenu">
			<a href="/panel/analytics/routes/">{{lang "panel_menu_stats_routes"}}</a>
		</div>
		<div class="rowitem passive submenu">
			<a href="/panel/analytics/routes-perf/">{{lang "panel_menu_stats_routes_perf"}}</a>
		</div>
		<div class="rowitem passive submenu">
			<a href="/panel/analytics/agents/">{{lang "panel_menu_stats_agents"}}</a>
		</div>
		<div class="rowitem passive submenu">
			<a href="/panel/analytics/systems/">{{lang "panel_menu_stats_systems"}}</a>
		</div>
		<div class="rowitem passive submenu">
			<a href="/panel/analytics/langs/">{{lang "panel_menu_stats_languages"}}</a>
		</div>
		<div class="rowitem passive submenu">
			<a href="/panel/analytics/referrers/">{{lang "panel_menu_stats_referrers"}}</a>
		</div>
		<div class="rowitem passive submenu">
			<a href="/panel/analytics/memory/">{{lang "panel_menu_stats_memory"}}</a>
		</div>
		<div class="rowitem passive submenu">
			<a href="/panel/analytics/active-memory/">{{lang "panel_menu_stats_active_memory"}}</a>
		</div>
		<div class="rowitem passive submenu">
			<a href="/panel/analytics/perf/">{{lang "panel_menu_stats_perf"}}</a>
		</div>
	{{end}}
	<div class="rowitem passive">
		<a href="/forum/{{.ReportForumID}}">{{lang "panel_menu_reports"}}</a> <a class="menu_stats" href="#">({{.Stats.Reports}})</a>
	</div>
	<div class="rowitem passive">
		<a href="/panel/logs/mod/">{{lang "panel_menu_logs"}}</a>
	</div>
	{{if eq .Zone "logs"}}
		<div class="rowitem passive submenu"><a href="/panel/logs/regs/">{{lang "panel_menu_logs_registrations"}}</a></div>
		<div class="rowitem passive submenu"><a href="/panel/logs/mod/">{{lang "panel_menu_logs_moderators"}}</a></div>
		{{if .CurrentUser.Perms.ViewAdminLogs}}<div class="rowitem passive submenu"><a href="/panel/logs/admin/">{{lang "panel_menu_logs_administrators"}}</a></div>{{end}}
	{{end}}
</div>
<div class="colstack_item colstack_head">
	<div class="rowitem"><a href="#">{{lang "panel_menu_system"}}</a></div>
</div>
<div class="colstack_item rowmenu">
	{{if .CurrentUser.Perms.ManagePlugins}}<div class="rowitem passive">
		<a href="/panel/plugins/">{{lang "panel_menu_plugins"}}</a>
	</div>{{end}}
	{{if .CurrentUser.IsSuperAdmin}}<div class="rowitem passive">
		<a href="/panel/backups/">{{lang "panel_menu_backups"}}</a>
	</div>{{end}}
	{{if .CurrentUser.IsAdmin}}
	<div class="rowitem passive">
		<a href="/panel/debug/">{{lang "panel_menu_debug"}}</a>
	</div>
	{{if .DebugAdmin}}<div class="rowitem passive">
		<a href="/panel/debug/tasks/">{{lang "panel_menu_debug"}}</a>
	</div>{{end}}
	{{end}}
</div>